package com.spring.aop1.service02;

/**
 * @Author: lxh
 * @name: AccountService
 * Date: 2024/6/22  22:36
 */

import org.springframework.stereotype.Service;

/**
 * ClassName: AccountService
 *目标类
 * Description:
 * 银行账户业务类
 */
@Service
public class AccountService {

    public void transfer() {
        System.out.println("转账中...");
        throw new RuntimeException("运行时异常...");
    }

    public void withdraw() {
        System.out.println("取款中...");
    }

}
